﻿Imports System.Web.UI.WebControls.Menu
Imports System.Web.UI.Page
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.MasterPage
Public Class seguridad

    'variable global para saber el nivel de usuario
    '0= ningun usuario
    '1= Administrador   
    '2= Tecnico
    '3= Jefe de area
    '4= empleado cumún
    '    Public Shared usuario
    Public Shared contraseña1 As String
    Public Shared idrango1 As Integer = 0
    Public Shared departamento1 As Integer = 0
    Public Shared empresa1 As Integer = 0
    Public Shared usuarioid1 As Integer = 0
    Public Shared usuaronombrecompleto1
    Public Shared nivelusuario As Integer = 0
    Public Shared varmenu As Integer
    Public Shared iduser As String
    Public Shared idemple As String
    Public Shared usuarionick As String
    Public Shared tecniconame As String


    Public Shared descripcionsolicitud As String


    Public Shared conexion As String = "User Id=postgres;Password=angely;Host=localhost;Database=dbHelposDesk;Persist Security Info=True;"

    Public Shared Function verificapermisos()

        If nivelusuario = 0 Then
            System.Web.HttpContext.Current.Response.Redirect("Login.aspx")
        End If

        If nivelusuario = 1 Then

        End If

        If nivelusuario = 2 Then

        End If

        If nivelusuario = 3 Then

        End If

        If nivelusuario = 4 Then

        End If

    End Function




End Class
